﻿#include "CmdSetHeatMapVariableAxisChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSetHeatMapVariableAxisChanged::CmdSetHeatMapVariableAxisChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSetHeatMapVariableAxisChanged::~CmdSetHeatMapVariableAxisChanged()
    {
    }

    bool CmdSetHeatMapVariableAxisChanged::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_setHeatMapVariableAxisChanged(m_windowId, m_variableAxisIndex);
        return true;
    }

    void CmdSetHeatMapVariableAxisChanged::undo()
    {
    }

    void CmdSetHeatMapVariableAxisChanged::redo()
    {
        // execute();
    }

    void CmdSetHeatMapVariableAxisChanged::setHeatMapVariableAxisChanged(int windowId, int variableAxisIndex)
    {
        m_windowId = windowId;
        m_variableAxisIndex = variableAxisIndex;
    }

} // namespace PostCommand
